// 引入mongoose
const mongoose = require('mongoose');
mongoose.connect(
  "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/maiwenjie",
    {
      // 警告解决方法
      useNewUrlParser: true,
      useUnifiedTopology: true,
      auth: { authSource: "admin" }
    },
    () => {
        require("./model/users.js");
        require("./model/admins.js");
        require("./model/order.js");
        require("./model/movies.js");
        require("./model/theaters.js");
        require("./model/order.js");
        require("./model/schedules.js");
        require("./model/seats.js")
        require("./model/seating.js");
        require("./model/cinemas.js");
        require("./model/admins.js");
    });

